<template>
    <div class="commp-step-v" :key="stepsKey">
        <!-- direction="vertical" -->
        <a-steps size="small" :current="parameterData.fhjmc?currentData.manufacturingList.indexOf(parameterData.fhjmc):currentData.index" >
            <a-step v-for="(item,index) in currentData[parameterData.listKey?parameterData.listKey:currentData.listKey]" :key="index" :title="item"/>
        </a-steps>
    </div>
</template>
<script>
export default {
    components:{

    },
    props:{
        parameterData:{
            type:Object,
            default:() => {},
            required:false,
        },
    },
    data(){
        return{
            currentData:{
                index:0,
                manufacturingList:[
                    '任务受理',
                    // '材料审查',
                    // '材料审查复核',
                    '方案制定',
                    // '方案复核',
                    '方案审核',
                    // '方案审批',
                    '技术审评',
                    '综合评定',
                ],
                listKey:'manufacturingList',
               
            },
            stepsKey:null,
        }
    },
    watch:{

    },
    mounted(){
        
    },
    methods:{
        getData(row){
            this.currentData = {...this.currentData,...row}
            this.stepsKey = Date.now()
        }
    }
}
</script>
<style lang="less">
.commp-step-v{
    .ant-steps-item-title{
        font-size: 16px;
        font-weight: 600;
    }
}
</style>